/*!
 * Copyright 2019 WeBank
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

@import '@dataspherestudio/shared/common/style/variables.scss';

@import '@dataspherestudio/shared/common/style/headerCommon.scss';


.proj-select {
    margin-left: 25px;
    vertical-align: middle;
    color: #fff;
    margin-top: -2px;
    display: flex;
}
.workspacename-item {
  display: flex;
  &:hover {
    .pro-item-star {
      opacity: 1;
    }
  }
  .pro-item-star {
    display: block;
    opacity: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: url(../../assets/images/icon-nav-star.png) no-repeat;
    background-size: contain;
    margin-left: 10px;
    &.favorited {
      opacity: 1;
      background: url(../../assets/images/icon-nav-stard.png) no-repeat;
      background-size: contain;
    }
  }
}
.project-dro {
    vertical-align: top;
    height: 100%;
    margin-left: 80px;
    .project {
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        height: 54px;
        &:hover {
            color:#fff;
        }
    }
    .proj-list {
        height: 400px;
        overflow-y: auto;
        @include bg-color($background-color-header, $dark-menu-base-color);
        padding: 0 15px;
        .proj-name {
            padding:7px 15px;
            height: 30px;
            line-height: 30px;
            font-size: $font-size-large;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            @include border-color(rgba(255,255,255,0.08), $dark-border-color-base);
            padding-bottom: 35px;
            color: $text-tille-light-color;
            font-size: 16px;
            &::before {
                content: '';
                font-weight: bold;
                padding-left: 12px;
                border-left: 3px solid #2d8cf0;
                color: rgba(255,255,255,0.85);
            }
        }
        .name-bar {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            flex-wrap: wrap;
            padding: 0 $padding-25;
            line-height: 1.5;
            .proj-item {
                // width: 200px;
                padding: 0 10px 0 5px;
                margin-right: 15px;
                font-size: $font-size-14;
                color: $text-tille-light-color;
                cursor: pointer;
                &:hover {
                    color: $dark-selected-color
                }
                &.active {
                    color: $dark-active-color
                }
            }
        }
    }
    ::v-deep .ivu-select-dropdown {
        padding: 0;
        margin: 0;
    }
}
.menu-item-dropdown {
  ::v-deep .ivu-select-dropdown {
    max-width: inherit;
    padding: 0;
    margin: 0;
  }
  .list {
    @include bg-color($background-color-header, $dark-menu-base-color);
    padding: 5px 5px 10px;
    color: $text-tille-light-color;
    cursor: pointer;
    ::v-deep .ivu-dropdown-item {
      color: $text-tille-light-color;
      &:hover {
        background: none;
      }
    }
    &:hover {
      color: $dark-selected-color
    }
  }
}
.workspace-icon {
    margin: 0 10px 0 25px;
    display: inline-block;
}

.luban-menu-trigger {
    display: block;
    margin-left: -20px;
    width: 54px;
    height: 54px;
    line-height: 54px;
    // background: #061528;
    @include bg-color(#061528, $dark-menu-base-color);
    text-align: center;
    cursor: pointer;
    &:hover {
    //   background: #2E92F7;
      @include bg-color($primary-color, $dark-primary-color);
    }
    img {
      width: 24px;
      height: 24px;
      vertical-align: middle;
    }

}
.header-actived {
  color: $body-background;
}

.header-actived:before {
  content: '';
  height: 2px;
  width: 100%;
  margin-left: -5px;
  background-color: #2E92F7;
  position: absolute;
  top: 40px;
}
